package xyz.yuanjilu.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import xyz.yuanjilu.dao.GroupSalesDao;
import xyz.yuanjilu.entity.GroupSalesEntity;
import xyz.yuanjilu.service.GroupSalesService;



@Service("groupSalesService")
public class GroupSalesServiceImpl implements GroupSalesService {
	@Autowired
	private GroupSalesDao groupSalesDao;
	
	@Override
	public GroupSalesEntity queryObject(Long id){
		return groupSalesDao.queryObject(id);
	}
	
	@Override
	public List<GroupSalesEntity> queryList(Map<String, Object> map){
		return groupSalesDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return groupSalesDao.queryTotal(map);
	}
	
	@Override
	public void save(GroupSalesEntity groupSales){
		groupSalesDao.save(groupSales);
	}
	
	@Override
	public void update(GroupSalesEntity groupSales){
		groupSalesDao.update(groupSales);
	}
	
	@Override
	public void delete(Long id){
		groupSalesDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		groupSalesDao.deleteBatch(ids);
	}
	
}
